import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入bootstrap
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap/dist/js/bootstrap'
import 'popper.js/dist/esm/popper'

// 引入elementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'

// 引入font-awesome
import 'font-awesome/css/font-awesome.css'

// 引入echarts
import echarts from 'echarts' //引入echarts
Vue.prototype.$echarts = echarts; //引入组件

//引入axios
import './axios'

Vue.use(ElementUI);

Vue.config.productionTip = false;

// 手机号格式化
Vue.prototype.tel = function (val) {
  if (val) { // 是否设置为json
    // let value = val.substr(0, 3);
    return val.replace(/(\d{0})\d{4}(\d{3})/, '*******');
  }
};

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
